<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.box {
				width: 500px;
				height: 300px;
				border: 4px solid #000;
				margin: 50px auto;
				position: relative;
			}
			
			p {
				position: absolute;
				left: 0;
				bottom: 0;
				background: rgba(0, 0, 0, 0.5);
				color: #fff;
				margin: 0;
				width: 480px;
				height: 50px;
				line-height: 50px;
				padding-left: 20px;
				display: none;
			}
		</style>
		<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
	</head>

	<body>
		<div class="box">
			<img src="pic/02.jpg" />
			<p>这是桃花啊~~~~</p>
		</div>
	</body>
	<script type="text/javascript">
		$(".box").hover(function(){
			$("p").slideDown(200)
		},function(){
			$("p").slideUp(200)
		})
		
	</script>

</html>